package co.fitstart.entity.courseware.fitnessgroup;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author dan
 *
 */
@Alias("dailyCoursewareType")
public enum DailyCoursewareType {
	
	TRAINING("training", "训练"),
	
	REST("rest", "休息");
	
	private String alias;
	
	private String description;
	
	/**
	 * 
	 * @param alias
	 * @param description
	 */
	DailyCoursewareType(String alias, String description) {
		this.alias = alias;
		this.description = description;
	}
	
	/**
	 * 
	 * @return
	 */
	public boolean isTraining() {
	    return this.equals(TRAINING);
	}
	
	/**
	 * 
	 * @return
	 */
	public boolean isRest() {
	    return this.equals(REST);
	}
	
	/**
	 * @return
	 */
	public String getAlias() {
		return alias;
	}
	
	/**
	 * @return
	 */
	public String getDescription() {
		return description;
	}
}
